// import Vue from "vue";
// import Router from "vue-router";
// //路由导航冗余报错（路由重复）
// const originalPush = Router.prototype.push;
// Router.prototype.push = function push(location) {
//   return originalPush.call(this, location).catch((err) => err);
// };
export default [
  {
    path: "/index",
    name: "index",
    component: () => import("../views/index.vue"),
    children: [
      {
        path: "/memberuser",
        name: "member",
        component: () => import("../views/member/memberuser.vue"),
        meta: {
          bread: ["会员", "会员列表"],
        },
      },
      {
        path: "/memberclass",
        name: "class",
        component: () => import("../views/member/memberclass.vue"),
        meta: {
          bread: ["会员", "会员等级"],
        },
      },
      {
        path: "/Photo",
        name: "Photo",
        component: () => import("../views/management/Photo.vue"),
        meta:{
          bread:["相册管理"]
        }
      },
    ],
  },
  {
    path: "/login",
    name: "login",
    component: () => import("../views/login.vue"),
  },
];
